package com.sc.study.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.sc.study.dto.ProjectFileDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 研究视频
 *
 * @author 徐赫阳
 * @date 2021/10/26
 */
@Data
public class StudyVideo extends SysBase implements Serializable {

    private static final long serialVersionUID = -26174142183771396L;

    @ApiModelProperty(value="视频文件标题")
    private String title;

    @ApiModelProperty(value="视频文件类型 -- 1文件夹 2视频")
    private Integer type;

    @ApiModelProperty(value="父级元素id")
    private Integer parentId;

    @ApiModelProperty(value="关联文件id")
    private Integer fileId;

    @TableField(exist = false)
    @ApiModelProperty(value="关联文件实体")
    private ProjectFileDTO projectFile;

    @TableField(exist = false)
    @ApiModelProperty(value="创建人")
    private String creator;

    @TableField(exist = false)
    @ApiModelProperty(value="收藏数")
    private Integer collection;

    @TableField(exist = false)
    @ApiModelProperty(value="点赞数")
    private Integer thumbsUp;

}
